import type { TCacheKey, TSqlReq, TTableReq } from "@/typing/tool";
import alovaInstance from "@/utils/request";

export const searchCache = (data: TCacheKey) => alovaInstance.Post('/api/helper/cache/search', data)

export const queryDbs = () => alovaInstance.Get('/api/helper/data/dbs')
export const queryTableName = (data: TTableReq) => alovaInstance.Post('/api/helper/data/tables', data)
export const executeSql = (data: TSqlReq) => alovaInstance.Post('/api/helper/data/mysql', data)


